public class TestDemo {
    public static int fun(int n){
        if(n==1){
            return 1;
        }
        int tmp= fun(n-1);
        return tmp*n;
    }
    public static void main(String[] args) {
        System.out.println(fun(5));
    }
}
